//============================================================================
//	警告: 这个文件是使用2009-8-28 17:56:54建立的IBatisNetGen.DaoImpl.cst生成的.
//				重新生成时,原先手动做的修改将会丢失.
//============================================================================
using System;
using System.Collections.Generic;
using System.Text;
using IBatisNet.DataMapper;
using Bino.ExamOnline.Components.Entitys;
using Bino.ExamOnline.Components.Interface;
using CMail.Common.TextLib;

namespace Bino.ExamOnline.DataProvider 
{	
    /// <summary>实现<see cref="IStudentClassDao"/>接口.</summary>
    public class StudentClassDataProvider : IStudentClassDao 
	{
		/// <summary>实现 <see cref="IStudentClassDao.GetStudentClassesCount"/></summary>
		public int GetStudentClassesCount() {
			string statementId = "StudentClass.GetStudentClassesCount";
			int result = ExecuteQueryForObject<int>(statementId, null);
			return result;
		}

		/// <summary>实现 <see cref="IStudentClassDao.GetStudentClass"/></summary>
		public StudentClass GetStudentClass(Int32 classID) 
		{
			string statementId = "StudentClass.GetStudentClass";
			StudentClass result = ExecuteQueryForObject<StudentClass>(statementId, classID);
			return result;
		}


		/// <summary>实现 <see cref="IStudentClassDao.GetAllStudentClasses"/></summary>
		public IList<StudentClass> GetAllStudentClasses() 
		{
			string statementId = "StudentClass.GetAllStudentClasses";
			IList<StudentClass> results = ExecuteQueryForList<StudentClass>(statementId, null);
			return results;
		}

		/// <summary>实现 <see cref="IStudentClassDao.GetAllStudentClassesWithOutLob"/></summary>
		public IList<StudentClass> GetAllStudentClassesWithOutLob()
		{
			string statementId = "StudentClass.GetAllStudentClassesWithOutLob";
			IList<StudentClass> results = ExecuteQueryForList<StudentClass>(statementId, null);
			return results;
		}
	
		/// <summary>实现 <see cref="IStudentClassDao.CreateStudentClass"/></summary>
		public void CreateStudentClass(StudentClass obj)
		{
			if (obj == null) 
				return;
			string statementId = "StudentClass.CreateStudentClass";
			ExecuteInsert(statementId, obj);
		}

		/// <summary>实现 <see cref="IStudentClassDao.UpdateStudentClass"/></summary>
		public void UpdateStudentClass(StudentClass obj) 
		{
			if (obj == null) 
				return;
			string statementId = "StudentClass.UpdateStudentClass";
			ExecuteUpdate(statementId, obj);
		}

		/// <summary>实现 <see cref="IStudentClassDao.DeleteStudentClass"/></summary>
		public void DeleteStudentClass(StudentClass obj) 
		{
			if (obj == null)
				return;
			string statementId = "StudentClass.DeleteStudentClass";
			ExecuteDelete(statementId, obj);
		}

		/// <summary>实现 <see cref="IStudentClassDao.DeleteStudentClassByClassID"/></summary>
		public int DeleteStudentClassByClassID(Int32 classID) 
		{
			string statementId = "StudentClass.DeleteStudentClassByClassID";
			int result = ExecuteDelete(statementId, classID);
			return result;
		}		

		/// <summary>实现 <see cref="IStudentClassDao.ReloadStudentClass"/></summary>
		public void ReloadStudentClass(StudentClass obj) 
		{
			if (obj == null) 
				return;
			string statementId = "StudentClass.GetStudentClass";
			ExecuteQueryForObject<StudentClass>(statementId, obj, obj);
		}		

	}
}
